AngelLabel = cc.Class.extend({
	angel:null,
	label:null,
	parent:null,
	ctor:function (parent,angelName, text, index) {
		if(index == null){
			index = 0;
		}
		this.angel = new Angel01(angelName);
		this.label = new cc.LabelBMFont(text, res01.font_f);
		this.label.anchorX = 0;
		this.label.anchorY = 0;
		parent.addChild(this.angel, index);
		parent.addChild(this.label, index);
		this.parent=parent;
	},
	setPosition:function (x,y,labelUp){
		if(labelUp == null){
			labelUp = true;
		}
		this.angel.setPosition(x,y);
		if(labelUp){
			this.label.setPosition(x, y + this.angel.height);	
		} else {
			this.label.setPosition(x, y - this.label.height);	
		}
	},
	setColor:function(color){
		this.label.setColor(color);
	},
	setTag:function(tag){
		this.angel.setTag(tag);
	},
	setVisible:function(bool){
		this.angel.setVisible(bool);
		this.label.setVisible(bool);
	}
});